package com.jsbj.user.entities;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 设备字段配置表
 * </p>
 *
 * @author jsbj
 * @since 2023-01-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="SysEquFieldConfig对象", description="设备字段配置表")
public class SysEquFieldConfig implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    @ApiModelProperty(value = "字段类型 1普通字段 2特殊处理字段 ")
    private String type;

    @ApiModelProperty(value = "系统编码")
    private String systemCode;

    @ApiModelProperty(value = "设备类型")
    private String equTypeValue;

    @ApiModelProperty(value = "字段编码")
    private String equFieldCode;

    @ApiModelProperty(value = "字段类型")
    private String fieldType;

    @ApiModelProperty(value = "字段名称")
    private String fieldName;

    @ApiModelProperty(value = "输入框提示文字")
    private String placeHolder;

    @ApiModelProperty(value = "字段内容类型")
    private String fieldContentType;

    @ApiModelProperty(value = "字段最大长度")
    private Integer maxLength;

    @ApiModelProperty(value = "字段是否必填 0否；1是")
    private Integer fieldRequired;

    @ApiModelProperty(value = "字段单位")
    private String fieldUnit;

    @ApiModelProperty(value = "是否需要从接口查询0否 1是")
    private Integer isFromInterface;

    @ApiModelProperty(value = "接口类名")
    private String interfaceClassName;

    @ApiModelProperty(value = "接口方法名")
    private String interfaceMethodName;

    @ApiModelProperty(value = "是否需要默认0否 1是")
    private Integer isDefalut;

    @ApiModelProperty(value = "默认值(若是下拉框则为下拉框的value)")
    private String defalutValue;

    @ApiModelProperty(value = "下拉框数据列表")
    private String selectDatas;

    @ApiModelProperty(value = "下拉框数据对象")
    @TableField(exist = false)
    private List<Map> selectDataList;

    @ApiModelProperty(value = "编辑时能否修改0能 1否")
    private Integer isEditable;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "是否有效，0 – 有效，1 – 无效")
    private Integer disabled;

    @ApiModelProperty(value = "创建人用户ID")
    private String createrId;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "最后变更人用户ID")
    private String updateId;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "备注")
    private String remark;


}
